/**
 * @file mainwindow.h
 * @author huangxb
 * @email 18228033207@163.com
 * @date 2025-04-08
 * @brief GIF视图
 */
#ifndef GIFVIEW_H
#define GIFVIEW_H

#include <QWidget>

namespace Ui {
class GIFView;
}
class CGIFViewController;
class QMovie;

class CGIFView : public QWidget
{
    Q_OBJECT

private:
    CGIFViewController* m_pController = nullptr;
    QMovie* m_pGif = nullptr;

public:
    explicit CGIFView(QWidget *parent = nullptr);
    ~CGIFView();

    void SetController(CGIFViewController* pController);

    void ShowGIF(const QString& strPath);
    QString GetShowGIFPath() const;
    QSize GetScaleSize() const;

private slots:
    void on_m_openGIF_pushButton_clicked();
    void on_m_scaleGIF_pushButton_clicked();

private:
    Ui::GIFView *ui;
};

#endif // GIFVIEW_H
